<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>FirstJS</title>
    <script src="../js/FirstJS.js"></script>
</head>
<body>
    <h1>标题一</h1>
    <div class="p1">
        <span id="spp">hhh</span>
    </div>
    <div id="box1">
        <span id="spa">ggg</span>
    </div>
<!--    <div class="box2">box2-->
<!--        <div class="box3">box3-->

<!--        </div>-->
<!--        <div class="box4">box4</div>-->
<!--    </div>-->
</body>
<!--<script>-->
<!--    let p = document.getElementsByClassName("p1");-->
<!--    let div1 = document.getElementById("box1");-->
<!--    let sp = document.getElementById("spa");-->
<!--    div1.innerText = "Hello World";-->
<!--    // div1.style.color = "red";-->
<!--    div1.innerHTML = "<h1>Hello World</h1>";-->
<!--    p[0].innerHTML = "<h1>Hello World</h1>";-->
<!--</script>-->
</html>